'''
Bytes 字节：
    最简单的理解，特殊的字符串
只能识别字母、数字、符号

'''
data_01  = "1"
print (type(data_01))

data_02  = b"1"
print (type(data_02))

data_03  = b"--"
print (type(data_03))


#str ---> bytes  encode()编码
data_04 = "hahah 你好"
new_data_04 = data_04.encode(encoding="UTF-8")
print(type(new_data_04))
print(new_data_04)


# bytes ----> str   decode()解码
data_05 = b"hahah\xe4\xbd\xa0\xe5\xa5\xbd"
new_data_05= data_05.decode(encoding="UTF-8")
print(type(new_data_05))
print(new_data_05)


